package com.yjd.comm.funds.enums;

/**
 * Created by yjd-wap on 2017/9/20.
 */
public enum FundsRefTableEnum {

    MFQ_RECHARGE_ORDER("mfq_recharge_order", "充值订单表"),
    MFQ_ORDER("mfq_order", "订单总表"),
    MFQ_REPAYMENT_DATA("mfq_repayment_data","用户还款表报");
    private String code;
    private String label;

    public static FundsRefTableEnum parse(String code){
        for (FundsRefTableEnum fundsRefTableEnum : FundsRefTableEnum.values()) {
            if(fundsRefTableEnum.getCode().equals(code)){
                return fundsRefTableEnum;
            }
        }
        return null;
    }

    private FundsRefTableEnum(String code, String label) {
        this.code = code;
        this.label = label;
    }


    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getLabel() {
        return label;
    }
    public void setLabel(String label) {
        this.label = label;
    }
}
